package mutsumimod.cards.stand;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DamageAction;
import com.megacrit.cardcrawl.actions.common.DrawCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.actions.TriggerStandAction;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;
import mutsumimod.util.tags.CustomTags;

public class Improvise extends BaseCard {
    public static final String ID = makeID(Improvise.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.ATTACK,
            CardRarity.COMMON,
            CardTarget.ENEMY,
            1
    );

    public Improvise() {
        super(ID, info);
        setAttr(8,0,2);
        setAttrUpg(3,0,0);
        standTag=3;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        damageMonster(m);
        stand(standTag,m);
    }

    @Override
    public void standUse3(AbstractPlayer p,AbstractMonster m){
        addToTop(new DrawCardAction(magicNumber));
    }

    @Override
    public AbstractCard makeCopy() {
        return new Improvise();
    }
}
